# crm工作平台社群商机

from selenium.webdriver.common.by import By


class CommunityBusinessPageLocator:
    nav_cb_state_loc = (By.XPATH, "//span[@class='menu-item_title' and text()='社群商机']/../..")  # 社群商机导航打开状态
    nav_cb_loc = (By.XPATH, "//span[@class='menu-item_title' and text()='社群商机']")  # 社群商机一级导航
    nav_cb_programme_loc = (By.XPATH, "//span[@class='menu-item_title' and text()='编程社群商机']")  # 二级导航-编程社群商机
    nav_cb_track_loc = (By.XPATH, "//span[@class='menu-item_title' and text()='陪跑营社群商机']")  # 二级导航-陪跑营社群商机
    allocate_time_loc = (By.XPATH, "//div[@class='from-item' and contains(.,'分配时间')]//input")  # 分配时间输入框
    left_select_year_loc = (By.XPATH, "//select[@class='yearselect']", 2)  # 分配时间控件左侧年份点击
    left_select_month_loc = (By.XPATH, "//select[@class='monthselect']", 2)  # 分配时间控件左侧月份点击
    left_option_year_loc = (By.XPATH, "//option[text()=' 2022 ']", 1)  # 选择2022年
    left_option_month_loc = (By.XPATH, "//option[@value='8']", 2)  # 选择9月
    left_option_day_loc1 = (By.XPATH, "//td[@class='available ng-star-inserted']/span[text()='8']/..", 1)  # 选择8号
    left_option_day_loc2 = (By.XPATH, "//td[@class='available ng-star-inserted']/span[text()='14']/..", 2)  # 选择14号
    sales_loc = (By.XPATH, "//input[@placeholder='所属销售']")   # 所属销售输入框
    option_sales_loc = (By.XPATH, "//div[@class='option-list check-many-option-list']")  # 点击销售名称
    search_loc = (By.XPATH, "//button[text()='搜索']")  # 搜索按钮
    table_date_loc = (By.XPATH, "//datatable-body[@class='datatable-body']") # 列表数据
